/**
 * Created with IntelliJ IDEA.
 * Description: 数字9出现的次数（1-100）
 * Author:  LiuTao
 * Version: 1.0
 * Date:    2023-04-16  18:36
 */
public class Test1 {
    public static void main(String[] args) {
        int count = 0;
        for (int i = 9; i < 100; i++) {
                if(i % 10 == 9 || i / 10 == 9) {
                    count++;
                }
        }
        System.out.println(count);
    }
}

